package com.example.common.enums;


/**
 * 日志操作类型
 */
public enum DepLabel {

    LOGIN(0, "/"),
    INSERT(1, "HOT"),
    UPDATE(2, "推荐"),
    DELETE(3, "NEW");

    private final Integer value;
    private final String description;

    DepLabel(Integer value, String description) {
        this.value = value;
        this.description = description;
    }

    public Integer getValue() {
        return value;
    }

    public String getDescription() {
        return description;
    }

    public static String valuesDescription(int value){

        int i = value;
        switch(i){
            case 0:
                return LOGIN.getDescription();
            case 1:
                return INSERT.getDescription();
            case 2:
                return UPDATE.getDescription();
            case 3:
                return DELETE.getDescription();
            default:
                return " ";
        }

    }

}
